package com.kawa.kemanage.service;

import com.github.pagehelper.PageInfo;
import com.kawa.kemanage.entity.SystemNotice;
import com.kawa.kemanage.entity.User;

import java.util.Date;
import java.util.List;

public interface SystemNoticeService {
    List<SystemNotice> selectAll();//查询

//    String searchNotice(String userName);
    List<User> searchNotice(String userName);
    boolean addNotice(SystemNotice systemNotice);//添加

    boolean updateNotice(SystemNotice systemNotice);//修改

    int updateNewsStatusAndReadTime(Integer notificationId,Date readTime,String status);//修改

    int deleteNotice(Integer notificationId);//删除

    /**
     * 根据用户id查询评论消息
     * @param user_id
     * @return
     */
    List<SystemNotice> selectNoticeByUserId(Integer user_id);


    PageInfo<SystemNotice> selectByUserId(Integer userId, Integer page, Integer size);
}
